//------------------------------------------------
// imem.v
//
// James Forrest, 2013
// Based on code by:
// David_Harris@hmc.edu 23 October 2005
//
// Instruction memory used by MIPS pipelined
// processor
//------------------------------------------------

module imem(input  [31:2] addr,
            output [31:0] data);

	reg [31:0] RAM[255:0];

	initial $readmemh("../program.hex", RAM);

	assign data = RAM[addr];

endmodule
